/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-22 15:35:23
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\basic\uiForm.js
 * @CIMC-V2
 */
import { exInput, exRequestData, exSwitch, exInputNumber } from '@ve/common/components/extension'
export default {
  VERSION: '20220408',
  type: 'uiList',
  //组件类型
  name: '列表',
  icon: 'file-list-line',
  //数据别名
  // dataName: 'uiForm_data',
  //子组件列表
  list: [],
  //数据集合 表单 列表等等
  data: {
    requestData: {},
    //表单数据
    formData: {},
  },
  //扩展
  extension: {
    optionConfig: {
      type: 'exListOptionConfig',
      name: '列表项',
      value: [],
    },
    height: exInput('高度', '100%'),
    bgColor: {
      type: 'exSetChartColor',
      name: '背景颜色',
      value: '#000',
    },
    borderColor: {
      type: 'exSetChartColor',
      name: '边框颜色',
      value: '#fff',
    },
    borderWidth: exInput('边框厚度', '2px'),
    labelWidth: exInput('标签列宽度', '20%'),
    fontBold: exSwitch('字体加粗', true),
    polling: {
      type: 'exInputNumber',
      name: '轮询间隔',
      value: 0,
      min: 0,
      tooltip: '单位：毫秒',
    },
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    getDataKey: exInput('获取数据Key', ''),
    requestData: exRequestData('参数', [
      { key: '#LIMIT#', value: 1 },
      { key: '#PAGE_SIZE#', value: 50 },
    ]),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
